<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>JS 中数组方法总结（一） | Tracy的Blog</title><meta name="author" content="Tracy Liu"><meta name="copyright" content="Tracy Liu"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="1. sliceslice 方法不会改变原始数组. 复制数组  没有参数的数组复制原始数组，有时需要更新数组中的某些元素，不改变原始数组，可以使用 slice() 创建原始数组的浅复制。 123456const arrNumbers &#x3D; [1, 2, 3, 4, 5, 6];const copyNumbers &#x3D; arrNumbers.slice();console.log(copyNumbe">
<meta property="og:type" content="article">
<meta property="og:title" content="JS 中数组方法总结（一）">
<meta property="og:url" content="http://example.com/2022/09/20/array1/index.html">
<meta property="og:site_name" content="Tracy的Blog">
<meta property="og:description" content="1. sliceslice 方法不会改变原始数组. 复制数组  没有参数的数组复制原始数组，有时需要更新数组中的某些元素，不改变原始数组，可以使用 slice() 创建原始数组的浅复制。 123456const arrNumbers &#x3D; [1, 2, 3, 4, 5, 6];const copyNumbers &#x3D; arrNumbers.slice();console.log(copyNumbe">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="">
<meta property="article:published_time" content="2022-09-20T03:04:52.000Z">
<meta property="article:modified_time" content="2022-09-20T08:26:11.066Z">
<meta property="article:author" content="Tracy Liu">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content=""><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://example.com/2022/09/20/array1/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'JS 中数组方法总结（一）',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2022-09-20 16:26:11'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">3</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><hr/></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">Tracy的Blog</a></span><div id="menus"><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">JS 中数组方法总结（一）</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-09-20T03:04:52.000Z" title="发表于 2022-09-20 11:04:52">2022-09-20</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2022-09-20T08:26:11.066Z" title="更新于 2022-09-20 16:26:11">2022-09-20</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="JS 中数组方法总结（一）"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><br/>

<h3 id="1-slice"><a href="#1-slice" class="headerlink" title="1. slice"></a>1. slice</h3><h4 id="slice-方法不会改变原始数组"><a href="#slice-方法不会改变原始数组" class="headerlink" title="slice 方法不会改变原始数组."></a>slice 方法不会改变原始数组.</h4><ul>
<li>复制数组</li>
</ul>
<p>没有参数的数组复制原始数组，有时需要更新数组中的某些元素，不改变原始数组，可以使用 <code>slice()</code> 创建原始数组的浅复制。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> arrNumbers = [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>];</span><br><span class="line"><span class="keyword">const</span> copyNumbers = arrNumbers.<span class="title function_">slice</span>();</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(copyNumbers); <span class="comment">// [1, 2, 3, 4, 5, 6]</span></span><br><span class="line">copyNumbers[<span class="number">1</span>] = <span class="number">0</span>;</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(copyNumbers); <span class="comment">// [1, 0, 3, 4, 5, 6]</span></span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(arrNumbers); <span class="comment">// [1, 2, 3, 4, 5, 6]</span></span><br></pre></td></tr></table></figure>

<ul>
<li>从索引 n 开始的子数组</li>
</ul>
<p><code>slice(start,end)</code>方法的第二个示例是复制从数组索引<code>start</code>开始的子数组,<code>end</code>可选，结束位置，不填默认到数组结尾,不包含最后元素。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> arrNumbers = [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>];</span><br><span class="line"><span class="keyword">const</span> copyNumbers = arrNumbers.<span class="title function_">slice</span>(<span class="number">2</span>);</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(copyNumbers); <span class="comment">// [3, 4, 5, 6];</span></span><br><span class="line"><span class="keyword">const</span> copyNumbers1 = arrNumbers.<span class="title function_">slice</span>(<span class="number">2</span>, <span class="number">4</span>);</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(copyNumbers1); <span class="comment">// [3, 4];</span></span><br></pre></td></tr></table></figure>

<p>也可复制数组最后<code>n</code>位元素，就是使用<code>-n</code>作为参数，如下:</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> arrNumbers = [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>];</span><br><span class="line"><span class="keyword">const</span> copyNumbers = arrNumbers.<span class="title function_">slice</span>(-<span class="number">2</span>);</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(copyNumbers); <span class="comment">// [5, 6];</span></span><br></pre></td></tr></table></figure>

<ul>
<li>类数组对象转换为数组</li>
</ul>
<p>可以使用<code>slice()</code>方法将看起来像数组的对象转换为数组。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">function</span> <span class="title function_">transformToArray</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="keyword">return</span> <span class="title class_">Array</span>.<span class="property"><span class="keyword">prototype</span></span>.<span class="property">slice</span>.<span class="title function_">call</span>(<span class="variable language_">arguments</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">const</span> newArray = <span class="title function_">transformToArray</span>(<span class="string">&#x27;1&#x27;</span>, <span class="string">&#x27;2&#x27;</span>, <span class="string">&#x27;3&#x27;</span>, <span class="string">&#x27;4&#x27;</span>);</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(newArray); <span class="comment">// [&#x27;1&#x27;, &#x27;2&#x27;, &#x27;3&#x27;, &#x27;4&#x27;];</span></span><br></pre></td></tr></table></figure>

<p>以上代码片段可用来定义可变参数的函数。</p>
<ul>
<li>将 NodeList 转换为数组</li>
</ul>
<p>NodeList 对象是从文档中提取的节点集合，可以使用方法<code>querySelectorAll()</code>返回节点列表对象。例如，可以选择 HTML 文档中所有<p>节点，可以使用<code>slice()</code>将选定节点列表转换为数组。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> elemP = <span class="variable language_">document</span>.<span class="title function_">querySelectorAll</span>(<span class="string">&#x27;p&#x27;</span>);</span><br><span class="line"><span class="keyword">const</span> elemNodes = <span class="title class_">Array</span>.<span class="property"><span class="keyword">prototype</span></span>.<span class="property">slice</span>.<span class="title function_">call</span>(elemP);</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(elemNodes);</span><br></pre></td></tr></table></figure>

<ul>
<li>替换字符串中的特定索引</li>
</ul>
<p>可以使用<code>slice()</code>函数创建替换函数。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="title class_">String</span>.<span class="property"><span class="keyword">prototype</span></span>.<span class="property">append</span> = <span class="keyword">function</span> (<span class="params">index, value</span>) &#123;</span><br><span class="line">  <span class="keyword">return</span> <span class="string">`<span class="subst">$&#123;<span class="variable language_">this</span>.slice(<span class="number">0</span>, index)&#125;</span><span class="subst">$&#123;value&#125;</span>`</span>;</span><br><span class="line">&#125;;</span><br><span class="line"><span class="keyword">const</span> textString = <span class="string">&#x27;新年&#x27;</span>;</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(textString.<span class="title function_">append</span>(<span class="number">2</span>, <span class="string">&#x27;快乐&#x27;</span>)); <span class="comment">// 新年快乐</span></span><br></pre></td></tr></table></figure>

<h3 id="2-splice"><a href="#2-splice" class="headerlink" title="2. splice"></a>2. splice</h3><h4 id="splice-方法会改变原始数组。可以用来对-js-数组进行删除、插入、替换等操作。"><a href="#splice-方法会改变原始数组。可以用来对-js-数组进行删除、插入、替换等操作。" class="headerlink" title="splice 方法会改变原始数组。可以用来对 js 数组进行删除、插入、替换等操作。"></a>splice 方法会改变原始数组。可以用来对 js 数组进行删除、插入、替换等操作。</h4><ul>
<li>删除功能</li>
</ul>
<p>用法：Array.splice(index,deleteCount),index deleteCount 为要删除的个数。返回值为删除的内容。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> arr = [<span class="string">&#x27;a&#x27;</span>, <span class="string">&#x27;b&#x27;</span>, <span class="string">&#x27;c&#x27;</span>, <span class="string">&#x27;d&#x27;</span>];</span><br><span class="line"><span class="keyword">const</span> tmp = arr.<span class="title function_">splice</span>(<span class="number">0</span>, <span class="number">2</span>);</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(tmp); <span class="comment">// [&#x27;a&#x27;,&#x27;b&#x27;]</span></span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(arr); <span class="comment">// [&#x27;c&#x27;,&#x27;d&#x27;]</span></span><br></pre></td></tr></table></figure>

<ul>
<li>插入功能</li>
</ul>
<p>用法：Array.splice(index,deleteCount,…insertValue)，插入操作时deleteCount传入0即可，insertValue 为要插入的数据。</p>
<ul>
<li>替换功能</li>
</ul>
<h3 id="3-sort"><a href="#3-sort" class="headerlink" title="3. sort"></a>3. sort</h3></article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="http://example.com">Tracy Liu</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="http://example.com/2022/09/20/array1/">http://example.com/2022/09/20/array1/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="http://example.com" target="_blank">Tracy的Blog</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-full"><a href="/2022/09/21/array2/"><img class="prev-cover" src="" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">JS 中数组方法总结（二）</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">Tracy Liu</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">3</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-slice"><span class="toc-number">1.</span> <span class="toc-text">1. slice</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#slice-%E6%96%B9%E6%B3%95%E4%B8%8D%E4%BC%9A%E6%94%B9%E5%8F%98%E5%8E%9F%E5%A7%8B%E6%95%B0%E7%BB%84"><span class="toc-number">1.1.</span> <span class="toc-text">slice 方法不会改变原始数组.</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-splice"><span class="toc-number">2.</span> <span class="toc-text">2. splice</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#splice-%E6%96%B9%E6%B3%95%E4%BC%9A%E6%94%B9%E5%8F%98%E5%8E%9F%E5%A7%8B%E6%95%B0%E7%BB%84%E3%80%82%E5%8F%AF%E4%BB%A5%E7%94%A8%E6%9D%A5%E5%AF%B9-js-%E6%95%B0%E7%BB%84%E8%BF%9B%E8%A1%8C%E5%88%A0%E9%99%A4%E3%80%81%E6%8F%92%E5%85%A5%E3%80%81%E6%9B%BF%E6%8D%A2%E7%AD%89%E6%93%8D%E4%BD%9C%E3%80%82"><span class="toc-number">2.1.</span> <span class="toc-text">splice 方法会改变原始数组。可以用来对 js 数组进行删除、插入、替换等操作。</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#3-sort"><span class="toc-number">3.</span> <span class="toc-text">3. sort</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2022/09/21/js-tracks/" title="JS Tracks"><img src="" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="JS Tracks"/></a><div class="content"><a class="title" href="/2022/09/21/js-tracks/" title="JS Tracks">JS Tracks</a><time datetime="2022-09-21T01:18:28.000Z" title="发表于 2022-09-21 09:18:28">2022-09-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/09/21/array2/" title="JS 中数组方法总结（二）"><img src="" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="JS 中数组方法总结（二）"/></a><div class="content"><a class="title" href="/2022/09/21/array2/" title="JS 中数组方法总结（二）">JS 中数组方法总结（二）</a><time datetime="2022-09-21T01:12:30.000Z" title="发表于 2022-09-21 09:12:30">2022-09-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/09/20/array1/" title="JS 中数组方法总结（一）"><img src="" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="JS 中数组方法总结（一）"/></a><div class="content"><a class="title" href="/2022/09/20/array1/" title="JS 中数组方法总结（一）">JS 中数组方法总结（一）</a><time datetime="2022-09-20T03:04:52.000Z" title="发表于 2022-09-20 11:04:52">2022-09-20</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2022 By Tracy Liu</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>